<?php
/**
 *
 */
namespace App\Model\Table;

use Cake\ORM\Table;
class TeamsTable extends Table {
    public function initialize(array $config){
        $this->table('teams');
        $this->hasMany = array(
            'Accounts' => array(
                'className' => 'Accounts',
                'foreignKey' => 'team_id'
            ),
            'TeamHasProjects' => array(
                'className' => 'TeamHasProjects',
                'foreignKey' => 'team_id'
            ),
        );
    }
}
?>